package com.testplatfrom.project.enumproject.environment;

public enum AssertTypeEnum {
    REGULAR("正则"),
    JSONPATH("JsonPath"),
    XPATH("Xpath"),
    REPONSETIME("响应时间")
    ;
    private String message;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    AssertTypeEnum(String message) {
        this.message = message;
    }

    public static AssertTypeEnum getByKey(String message){
        for (AssertTypeEnum assertMethodsType:values()){
            if (message.equals(assertMethodsType.getMessage())){
                return assertMethodsType;
            }
        }
        return null;
    }
}
